/*******************************************************************************
 ** Name: container.cpp                                                       **
 ** Description: WorldObject-derived container objects                        **
 **                                                                           **
 ** Open Source Initiative (OSI) Approved License                             **
 **                                                                           **
 ** The contents of this file are subject to the terms of the                 **
 ** Common Development and Distribution License, Version 1.0 only             **
 ** (the "License").  You may not use this file except in compliance          **
 ** with the License.                                                         **
 **                                                                           **
 ** You can find a copy of the license in the license.txt within              **
 ** this distribution or at http://www.munixos.net/licensing.                 **
 ** Software distributed under the License is distributed on an "AS IS"       **
 ** basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.           **
 ** See the License for the specific language governing permissions           **
 ** and limitations under the License.                                        **
 **                                                                           **
 ** When distributing Covered Code, include this CDDL header in each          **
 ** file and include the License file at $$HOME/license.txt.                   **
 ** If applicable, add the following below this header, with the indicated    **
 ** fields enclosed by brackets "[]" replaced with your own identifying       **
 ** information: Portions Copyright [yyyy] [name of copyright owner]          **
 **                                                                           **
 **                                                                           **
 ** Copyright (c) 2009-2011  Barry Gian James <gian@gamingods.net>            **
 ** All rights reserved.                                                      **
 ******************************************************************************/
// Modified $Date: 2011-11-24 00:07:02 -0700 (Thu, 24 Nov 2011) $ by $Author: unknown $
#define _container_cpp_ID    "$Id: container.cpp 63608 2011-11-24 07:07:02Z unknown $"

#include "container.hpp"

//////////////////////////[ Vehicle
Vehicle::Vehicle(const std::string &n)
	: Container(n)
{
	vtype = VehicleTypeEnum::Car;
	vclass = VehicleClassEnum::Wheeled;
	traits = pilot_dc = 0;
	speed = speed_max = 0;
}

Vehicle::Vehicle(const Vehicle & v)
{
	vtype = v.vtype;
	vclass = v.vclass;
	traits = v.traits;
	pilot_dc = v.pilot_dc;
	speed = v.speed;
	speed_max = v.speed_max;
}
//////////////////////////[ Region
Region::Region(const Region & r)
{
	_id = r.ID();
	_name = r.Name();
	_desc = r.Desc();
	_flags = r.Flags();
}

//////////////////////////[ Container
Container::Container(const std::string &n)
        : Item(n)
{
    capacity = DEFAULT_CAPACITY;
    open_dc = key = 0;
}


Container::Container(const Container& orig)
{
	contains = orig.contains;
	open_dc = orig.open_dc;
	key = orig.key;
	capacity = orig.capacity;
}

Container::~Container()
{
}

